package com.example.helloworld

import android.os.Bundle
import android.widget.Button
import android.widget.TextView
import androidx.activity.ComponentActivity

class MyActivity: ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.layout_mian)
        val textView=findViewById<TextView>(R.id.textView)
        val button=findViewById<Button>(R.id.button)
        button.setOnClickListener {
            textView.text="omg.."
            button.text="fail"
        }
    }
}

